
<!-- m_navbar-->
{{template "m_navbar.html" .}}
<!-- body start-->

<div class="alert alert-light" role="alert">
   <p>上传文件</p>

<!--上传文件-->
        <form action="/upload?active={{.active}}" method="post" enctype="multipart/form-data">

            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">文件:</span>
                </div>
                <div class="custom-file">
                    <input type="file" name="file" class="custom-file-input" id="inputGroupFile01"  >
                    <label class="custom-file-label" for="inputGroupFile01" id="filename">选择文件</label>
                </div>
            </div>

            <div class="input-group mb-3" style="display:none;">
                <div class="input-group-prepend">
                    <span class="input-group-text" id="basic-addon1">文件夹的id信息:</span>
                </div>
                <input type="text" name="folderid" value={{.folderid}}  id="account" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
            </div>

         <!--   <input type="hidden" name="userid" value=.user.ID>用户的id信息-->
            <input class="btn btn-outline-primary" type="submit" value="上传">
        </form>
</div>
<!-- body end-->
<script type="text/javascript">
    $('#inputGroupFile01').on('change',function(){
       $('#inputGroupFile01').html($(this).val());
        var filename = $(this).val();
        $('#filename').html(filename);
    });
</script>
<!-- m_footer-->
{{template "m_footer.html" .}}